home *** CD-ROM | disk | FTP | other *** search
/ Champak 64 / Volume 64 - JOGO DISK .iso / Games / the_best_every_day.swf / scripts / __Packages / Controller.as next >
Text File  |  2008-04-10  |  937b  |  43 lines

  1. class Controller extends MovieClip
  2. {
  3.    function Controller()
  4.    {
  5.       super();
  6.       _global.C = this;
  7.       this.oGame = new Game(this._parent.mcGame);
  8.       this.onEnterFrame = this.update;
  9.    }
  10.    function update()
  11.    {
  12.       this.oGame.update();
  13.    }
  14.    function addLadder(l_mcLadder)
  15.    {
  16.       this.oGame.addLadder(l_mcLadder);
  17.    }
  18.    function addFloor(l_mcFloor)
  19.    {
  20.       this.oGame.addFloor(l_mcFloor);
  21.    }
  22.    function addDropPoint(l_mcDropPoint)
  23.    {
  24.       this.oGame.addDropPoint(l_mcDropPoint);
  25.    }
  26.    function addPatrick(l_mcPatrick)
  27.    {
  28.       this.oGame.addPatrick(l_mcPatrick);
  29.    }
  30.    function addObstacle(l_mcObstacle, l_sType)
  31.    {
  32.       this.oGame.addObstacle(l_mcObstacle,l_sType);
  33.    }
  34.    function removeObstacle(l_mcObstacle)
  35.    {
  36.       this.oGame.removeObstacle(l_mcObstacle);
  37.    }
  38.    function dropBox(l_bCorrect)
  39.    {
  40.       this.oGame.dropBox(l_bCorrect);
  41.    }
  42. }
  43.